﻿using System;
using System.Text.RegularExpressions;

class Program
{
    static void Main()
    {
        string[] numbers = {"0", "33", "-2381.78132", "4.3347", "12.00", "0.34","-0.354" ,"-0",
                                   "+3", "24 543", "01.23", "12.", "11,23", "--2", ".25", "-.25" , "12е7", "0 34"};
        foreach (var number in numbers)
        {
            Console.WriteLine(Regex.Match(number, @"\A((-?[1-9]\d*)|-?0)(\.\d+)?\Z"));
        }
    }
}

